/**
 * LockboxStorage
 * Manages storage and encryption of users secret information
 *
 * Created by Nathan Black
 */

#import <Foundation/Foundation.h>
#import <CoreFoundation/CoreFoundation.h>
#import <UIKit/UIKit.h>
#import "SSCrypto.h"

extern NSString* const NSFileIOException;
extern NSString* const LockboxInvalidKeyException;

@interface LockboxStorage : NSObject
{
    NSMutableArray* _items;
    NSString* _filepath;
    NSString* _algorithm;
    NSData* _key;
}

-init;
- (BOOL)loadWithKey:(NSString*)key;
- (NSMutableArray *)items;
- (void)save;
- (void)validateData;
- (BOOL)exists;

@end
